package com.dong.test;

import com.dong.bean.Cat;
import com.dong.bean.Dog;
import com.dong.config.T1_config;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * <h1></h1>
 *
 * @author : dzj
 * @create: 2020-04-29 09:57
 */@Slf4j
public class T1_test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(T1_config.class);

        Dog dog = ctx.getBean(Dog.class);
        Cat cat = ctx.getBean(Cat.class);
        log.info("dog: {}",dog);
        log.info("cat: {}",cat);
        ctx.close();

    }
}
